/**
 * @intro: 主程序入口.
 */

// 导入样式
import 'normalize.css'
import './assets/iconfont/iconfont.css'
import 'font-awesome/scss/font-awesome.scss'
import 'src/assets/scss/main.scss'
import '../theme/index.css'
import { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, CodeToText, TextToCode } from 'element-china-area-data'
// 导入Vue框架
import Vue from 'vue'
// 导入element组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 导入组件
import components from './components'
// 导入路由
import router from './router'
// 导入状态管理器
import store from 'src/store'
// 导入请求框架
// import api from './api'
// 导入自定义插件
import plugin from './plugin'
// 导入主视图文件
import App from './App'

import axios from 'axios'
axios.defaults.withCredentials = true;
// 引用公共js
import until from './common/until.js'
Vue.prototype.utils = until

Vue.prototype.$http = axios


// 富文本开始
import 'quill/dist/quill.core.css'

import 'quill/dist/quill.snow.css'

import 'quill/dist/quill.bubble.css'
import vueQuillEditor from 'vue-quill-editor' // 引入富文本工具
Vue.use(vueQuillEditor)
// 富文本结束




// 注册
Vue.use(ElementUI)
Vue.use(components)
Vue.use(plugin)

// 发布后是否显示提示
Vue.config.productionTip = false



new Vue({
  // el: '#app',
  router,
  store,
  axios,
  render: h => h(App)
}).$mount('mainbody')
